package com.bwie.system.service.impl;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.system.mapper.UserMapper;
import com.bwie.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceimpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public Result<User> findByName(String userName) {
        User user=userMapper.findByName(userName);
        return Result.success(user);
    }
}
